package com.zhaoyang.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 赵扬
 * @time 2020/4/28 16:38
 * 日期格式化工具类
 */
public class DateFormatUtil {
    public static String getFormatDate(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
}
